package com.example.adapter.demo.login.v2.adapter;

import com.example.adapter.demo.login.v2.Member;
import com.example.adapter.demo.login.v2.ResultMsg;

/**
 * @author zhoubin
 */
public class LoginForTelphoneAdapter  extends AbstractAdapter {
    @Override
    public boolean support(Object loginAdapter) {
        return loginAdapter instanceof LoginForTelphoneAdapter;
    }

    @Override
    public ResultMsg login(String id) {
        ResultMsg resultMsg = super.loginForRegist(id, null);
        System.out.println("手机号 登录成功");
        return resultMsg;
    }
}
